﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using Artics.EditorUtils;

[CustomEditor(typeof(MeshSlicerForCulling))]
public class MeshSlicerForCullingEdt : Editor
{
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        MeshSlicerForCulling tar = target as MeshSlicerForCulling;

        if (GUILayout.Button("Slice bounded"))
        {
            tar.SliceBounded();
        }

        if (GUILayout.Button("Slice"))
        {
            tar.SimpleSlice();
        }

        if (GUILayout.Button("Visualize bounds"))
        {
            tar.CalcBoundsVisualizer();
        }

        
    }
}
